﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Add.aspx.cs" Inherits="sauyou.Admin.User_Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>发布资讯</title>
    <link rel="stylesheet" type="text/css" href="images/style.css" />

    <script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../js/jquery.validate.min.js"></script>

    <script type="text/javascript" src="../js/messages_cn.js"></script>

    <script type="text/javascript" src="../js/jquery.form.js"></script>

    <script type="text/javascript" src="js/function.js"></script>

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" src="../KindEditor/kindeditor.js"></script>

    <script type="text/javascript">
        KE.show({
            id : 'txtContent',
            imageUploadJson : '../Tools/upload_json.ashx',
            fileManagerJson : '../Tools/file_manager_json.ashx', 
            allowFileManager : true
        });
        
        $(function() {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function(label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
            
        });
    </script>

</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href="User_List.aspx">返回列表</a></span><b>您当前的位置：首页 &gt; 用户管理 &gt;
            新增用户</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="4" align="left">
                新增用户
            </th>
        </tr>
        <tr>
            <td width="10%" align="right">
                用户名：
            </td>
            <td width="23%">
                <asp:TextBox ID="userName" runat="server" CssClass="input w250 required" MaxLength="250"
                    minlength="3" HintTitle="用户名" HintInfo="控制在100个字数内，用户名尽量不要太长。"></asp:TextBox>
            </td>
            <td width="10%" align="right">
                用户密码：
            </td>
            <td width="23%">
                <asp:TextBox ID="memberpwd" TextMode="Password" runat="server" CssClass="input w250 required" MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                真实姓名：
            </td>
            <td width="23%">
                <asp:TextBox ID="readName" runat="server" CssClass="input w250" MaxLength="50"></asp:TextBox>
            </td>
            <td width="10%" align="right">
                &nbsp;
            </td>
            <td width="23%">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                电话：
            </td>
            <td width="23%">
                <asp:TextBox ID="phone" runat="server" CssClass="input w250" MaxLength="50"></asp:TextBox>
            </td>
            <td width="10%" align="right">
                Emial：
            </td>
            <td width="23%">
                <asp:TextBox ID="emial" runat="server" CssClass="input w250" MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                总消费：
            </td>
            <td width="23%">
                <asp:TextBox ID="totalMoney" runat="server" CssClass="input w250" MaxLength="50"></asp:TextBox>
            </td>
            <td width="10%" align="right">
                用户类型：
            </td>
            <td width="23%">
                <asp:DropDownList runat="server" ID="yhlxid">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                qq：
            </td>
            <td width="23%">
                <asp:TextBox ID="qq" runat="server" CssClass="input w250" MaxLength="50"></asp:TextBox>
            </td>
            <td width="10%" align="right">
                邮编：
            </td>
            <td width="23%">
                <asp:TextBox ID="zipCode" runat="server" CssClass="input w250" MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                联系地址：
            </td>
            <td colspan="3">
                <asp:TextBox ID="address" runat="server" CssClass="input w250" MaxLength="100"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                <font color="red">到期时间：</font>
            </td>
            <td width="23%">
                <asp:TextBox ID="endTime" runat="server" CssClass="Wdate w250 required" MaxLength="100" 
                onFocus="new WdatePicker(this,'%Y-%M-%D %h:%m:%s',true,'default')" ></asp:TextBox>
            </td>
            <td width="10%" align="right">
                修改密码时间：
            </td>
            <td width="23%">
                <asp:Label runat="server"  ID="UpdatepwdTime"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                <font color="red">代理等级：</font>
            </td>
            <td width="23%">
                <asp:DropDownList runat="server" ID="dldjid">
                </asp:DropDownList>
            </td>
            <td width="10%" align="right">
                所属代理用户：
            </td>
            <td width="23%">
                
                <asp:TextBox ID="parentId" runat="server" CssClass="input w250 required" MaxLength="100"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                上一次登入时间：
            </td>
            <td width="23%">
                <asp:Label runat="server" ID="oldTime"></asp:Label>                
            </td>
            <td width="10%" align="right">
                上一次登入IP：
            </td>
            <td width="23%">
                <asp:Label runat="server" ID="oldIP"></asp:Label>                
            </td>
        </tr>
        <tr>
            <td width="10%" align="right">
                注册IP：
            </td>
            <td width="23%">
                <asp:Label runat="server" ID="registerIP"></asp:Label>                      
            </td>
            <td width="10%" align="right">
                注册时间：
            </td>
            <td width="23%">
                <asp:Label runat="server" ID="registerTime"></asp:Label>                      
            </td>
        </tr>
        <tr>
            <td align="right">
                用户状态：
            </td>
            <td>
                <asp:CheckBox runat="server" ID="chkstate" />
            </td>
        </tr>
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />
        &nbsp;
        <input name="重置" type="reset" class="submit" value="重置" />
    </div>
    </form>
</body>
</html>
